<template>
  <div class="user-tpl">
      <h1>{{userCode}}</h1>
  </div>
</template>

<script>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
export default {
  name: 'UserTpl',
  setup () {
    const router = useRoute()

    const userCode = computed(() => {
      return router.params.userCode
    })

    return {
      userCode
    }
  }
}

</script>
<style scoped lang='scss'>

</style>
